let mos=require('mongoose')
mos.connect('mongodb://localhost/react_test')
mos.connection.on('open',()=>{
  console.log('连接数据库成功');
})

mos.connection.on('error',()=>{
  console.log('连接失败');
})

module.exports=mos